<%@page import="databaseDAO.RoleManagement"%>
<%@page import="databaseDAO.Menu2Dao,java.util.*,bean.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
	<form>
	
					<table class="mars" cellspacing="1" cellpadding="0"
												width="100%" border="0">
												<tbody>
													<tr bgcolor="#3992d0" height="30"><!-- #fba661 -->
														<td>
															<div align="center">
																昵称
															</div>
														</td>
														<td>
															<div align="center">
																用户名
															</div>
														</td>
														
														<td>
															<div align="center">
																用户角色
															</div>
														</td>
														
														<td>
															<div align="center">
																用户描述
															</div>
														</td>
														<td>
															<div align="center">
																创建时间
															</div>
														</td>
														
														
														<td>
															<div align="center">
																登录时间
															</div>
														</td>
														<td>
															<div align="center">
																在线时长
															</div>
														</td>
														<td>
															<div align="center">
																登录状态
															</div>
														</td>
														
														<td>
															<div align="center">
																IP
															</div>
														</td>
														<td>
															<div align="center">
																修改
															</div>
														</td>
														<td>
															<div align="center">
																删除
															</div>
														</td>
													</tr>
													  <%
														List<UserBean> listUb = (List<UserBean>) session.getAttribute("listUb");
															for (UserBean ub : listUb) {
																String uid = ub.getUserID();
																RoleManagement rm = new RoleManagement();
																RoleBean rb = rm.queryRolesByRoid(ub.getRoleID());
													%>
													<tr bgcolor="#f3f3f3" height="25">
														<td >
															<div align="center"><%=ub.getNickName()%></div>
														</td>
														<td >
															<div align="center"><%=ub.getUserName()%></div>
														</td>
														
														<td >
															<div align="center"><%=rb.getRoleName()%></div>
														</td>
														
														<td >
															<div align="center"><%=ub.getUserDescription()%></div>
														</td>
														<td >
															<div align="center"><%=ub.getUserCreateTime()%></div>
														</td>
														<td >
															<div align="center"><%=ub.getLoginTime()%></div>
														</td>
														<td >
															<div align="center"><%=ub.getLoginTimeLong()%></div>
														</td>
														
														<td >
															<div align="center"><%=ub.getCurrentStatus()%></div>
														</td>
														
														<td >
															<div align="center"><%=ub.getIP()%></div>
														</td>
														
														
														<td>
															<div align="center">
																<a 
																	href="/RightManagementSystem/LoginServlet?a=modifyUser&uid=<%=uid%>"><img
																		src="../images/update1.gif"
																		width="20" height="20" border="0" alt="修改" />
																</a>
															</div>
														</td>
														
														<td>
															<div align="center">
																<a
																	href="/RightManagementSystem/LoginServlet?a=deleteUser&uid=<%=uid%>"
																	onclick=""><img
																		src="../images/sz_tu02.gif"
																		border="0" alt="删除" />
																</a>
															</div>
														</td>
														
													</tr>
													<%
														}
													%>
												</tbody> 
											</table>
											<%//}%> 
		
	</form>
</body>
</html>